package com.meowcook.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-19
 * Time: 9:35
 */
@Data
@ApiModel("评论列表查询参数")
public class CommentListDTO {

    @NotNull
    @ApiModelProperty(value = "食谱id",  required = true)
    private Long recipeId;

    @NotNull
    @Min(0)
    @ApiModelProperty(value = "分页偏移量",  required = true)
    private int offset;

    @NotNull
    @Min(1)
    @ApiModelProperty(value = "分页大小",  required = true)
    private int limit;
}
